-- GENERATED SPELL FOR [Horde Elite] --


function spell0_14717(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14717', 604, 1)
end

function spell1_14717(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14717', 8281, 1)
end

function Sorts_14717(pUnit, Event)
local choix_sorts_14717 = math.random(0, 1)
if choix_sorts_14717 == 0 then
pUnit:RegisterEvent('spell0_14717', 1, 1)
end
if choix_sorts_14717 == 1 then
pUnit:RegisterEvent('spell1_14717', 1, 1)
end
end

function mob14717_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14717', math.random(1500, 3000), 1)
end

function mob14717_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14717_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14717_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14717, 1, 'mob14717_Action')
RegisterUnitEvent(14717, 2, 'mob14717_Leave')
RegisterUnitEvent(14717, 3, 'mob14717_Kill')
RegisterUnitEvent(14717, 4, 'mob14717_Die')
